package com.hm.controller;

import com.hm.pojo.HmItemCat;
import com.hm.serivce.HmItemCatService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(value = "商品分类接口",tags = {"商品分类接口"})
public class HmItemCatController {

    @Autowired
    private HmItemCatService hmItemCatService;

    /**
     * 第二模块，分类全查询
     * @return
     */
    @ApiOperation(value = "第二模块，分类全查询")
    @RequestMapping(value = "/ShowCatList",method = RequestMethod.GET)
    public List<HmItemCat> ShowCatList(){
        List<HmItemCat> List = hmItemCatService.ShowCatList();
        return List;
    }
}
